# Contributor: Thomas Kienlen <kommander@laposte.net>
# Maintainer: Thomas Kienlen <kommander@laposte.net>
pkgname=rclone-browser
pkgver=1.8.0
pkgrel=1
pkgdesc="Simple cross-platform GUI for rclone"
url="https://github.com/kapitainsky/RcloneBrowser"
# riscv64 blocked by binutils-gold -> rclone
# s390x blocked by rclone -> gh/cronokirby/saferith#51
arch="all !riscv64 !s390x"
license="MIT"
depends="rclone"
makedepends="cmake qt5-qttools-dev qt5-qtdeclarative-dev"
source="https://github.com/kapitainsky/RcloneBrowser/archive/$pkgver/RcloneBrowser-$pkgver.tar.gz
	quick_fix_for_qt-5.15.patch
	"
options="!check" # no test suite
builddir="$srcdir/RcloneBrowser-$pkgver"

build() {
	cmake -B build \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_BUILD_TYPE=None \
		-DReleaseBuild=ON
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="a71be1de99ee3d09946b23bc4c7ca423934c039e6ddc21dd5f5f4f3d97ba96564c40e9bab546d7671873a4fab0d2d7c08c87ef703be6fb26a40aa6582fb58d25  RcloneBrowser-1.8.0.tar.gz
4d59bcabd373e3d9e28e912cc7999217e3b26b44a45060cdeca34f8d9685bf6889a59ddf08784dba467b765fd006f4d24f2a91609eb394277b2ab09b0599228b  quick_fix_for_qt-5.15.patch"
